import axios from '../../network/axios'

// 月 业绩分析
export function performanceVersion(month) {
  return axios({
    url: '/vip-kpi/monthlyPerformanceAnalysis',
    method: 'get',
    params: {
      month
    }
  })
}

// 季度 业绩分析
export function quarterPerformanceAnalysis(params) {
  return axios({
    url: '/vip-kpi/quarterPerformanceAnalysis',
    method: 'get',
    params
  })
}

// 年累计分析
export function yearPerformanceAnalysis(params) {
  return axios({
    url: '/vip-kpi/yearPerformanceAnalysis',
    method: 'get',
    params
  })
}

// KPI 报表
export function kpiReport(params) {
  return axios({
    url: '/vip-kpi/kpiReport',
    method: 'get',
    params
  })
}

// 月累业绩明细表
export function monthlyPerformanceSchedule() {
  return axios({
    url: '/vip-kpi/monthlyPerformanceSchedule',
    method: 'get'
  })
}

// 日累业绩明细表
export function dayPerformanceSchedule() {
  return axios({
    url: '/vip-kpi/dayPerformanceSchedule',
    method: 'get'
  })
}

// 同期
export function theSamePeriod() {
  return axios({
    url: '/vip-kpi/theSamePeriod',
    method: 'get'
  })
}

// 同期
export function threeNotOpen() {
  return axios({
    url: '/vip-kpi/threeNotOpen',
    method: 'get'
  })
}
